﻿namespace Core.SyntaxAnalysis.Classes
{
    class Function : SubProgram
    {
        private readonly DataType m_returnType;
        public readonly Identificator ProcedureResult;

        public Function(Identificator name, Declrs arguments, DataType returnType, Declrs variables, Block body) : base(name, arguments, variables, body)
        {
            m_returnType = returnType;
            ProcedureResult = new Identificator(name.Lex);
            ProcedureResult.BindType(m_returnType);
        }
    }
}
